﻿@using CodeCamp.Models.Home
@model CodeCamp.Models.Shared.CommonViewModel
@{
    @* ViewBag.RegistrationUrl set in code - SetSharedViewBagProperties *@
    ViewBag.EventName = "";
    ViewBag.Title = "";
    if ((@Model != null) && (@Model.EventDisplayName != null))
    {
        ViewBag.Title = ("Code Camp: " + @Model.EventDisplayName + " Directions");
        ViewBag.EventName = @Model.EventDisplayName;
    }
    else
    {
        ViewBag.Title = "Code Camp Directions";
        ViewBag.EventName = "Code Camp";
    }
}

<!-- Directions -->
@if (!string.IsNullOrWhiteSpace(Model.PartialView))
{
    <!-- Partial -->
    @Html.Partial(Model.PartialView, Model)
}

@section sidebar {
    <div id="subLinksContainer" class="widget rounded-10">
    <h3>About</h3>
    <ul>
        <li>@Html.ActionLink("About Code Camp", "About", "Home", new { eventName = Model.EventShortName }, null)</li>
        <li>@Html.ActionLink("Other Boston Code Camps", "OtherCCEvents", "Home", new { eventName = Model.EventShortName }, null)</li>
        <li>@Html.ActionLink("Questions? - Contact Us", "Contact", "Home", new { eventName = Model.EventShortName }, null)</li>
    </ul>
    </div>
    @Html.Partial("SidebarCommonPartial")
}
